From 927084f0d4255ded569bdc51fda5b1279fad9767 Mon Sep 17 00:00:00 2001 From: "arun.sharma@intel.com[kaf24]" Date: Sat, 30 Apr 2005 08:35:58 +0000 Subject: [PATCH] bitkeeper revision 1.1389.1.15 (4273436eypuqO7C1_MKQjhBV2kylZw) [PATCH] vmx-mach-to-phys.patch VMX domains need to setup their machine to physical maps. Signed-off-by: Arun Sharma --- tools/libxc/xc_vmx_build.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/libxc/xc_vmx_build.c b/tools/libxc/xc_vmx_build.c index 42b546fec6..a89b783fee 100644 --- a/tools/libxc/xc_vmx_build.c +++ b/tools/libxc/xc_vmx_build.c @@ -313,6 +313,16 @@ static int setup_guest(int xc_handle, munmap(vl1tab, PAGE_SIZE); munmap(vl2tab, PAGE_SIZE); + /* Write the machine->phys table entries. */ + for ( count = 0; count < nr_pages; count++ ) + { + if ( add_mmu_update(xc_handle, mmu, + (page_array[count] << PAGE_SHIFT) | + MMU_MACHPHYS_UPDATE, count) ) + goto error_out; + } + + if ((boot_paramsp = xc_map_foreign_range( xc_handle, dom, PAGE_SIZE, PROT_READ|PROT_WRITE, page_array[(vboot_params_start-dsi.v_start)>>PAGE_SHIFT])) == 0) -- 2.30.2